package com.zgm.ch03.example1;

public class Oracle {

	private String name;
	private int age;
	
	public void setName(String name) {
		this.name = name;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("姓名：" + this.name + "\n 年龄：" + this.age);
		
		return sb.toString();
	}
}
